package com.xiangyueEducation.uploaderCloud.service;



import com.xiangyueEducation.uploaderCloud.utils.Result;
import com.xiangyueEducation.uploaderCloud.pojo.entity.User;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;

public interface LoginService {
    Result<?> login(User user);


    Result<?> checkUsernameUsed(String ID);

    Result<?> register(User registerInfo,String captcha);

    Result<?> add(User registerInfo);

    Result<?> checkLogin(String token);

    Result<?> changePwd(HashMap<String,String> pwdInfo, String token);

    Result<?> getCaptcha(String username,String email);

    Result<?> verifyCaptcha(String username,String captcha);
}
